// wglshader.hpp
//

#ifndef _WGLSHADER_HPP
#define _WGLSHADER_HPP

#include "wgl/wglbase.hpp"
#include "wgl/wgl_gltypes.hpp"

namespace wgl
{
  // Shader
  //
  class WGL_API Shader
  {
  public:
    Shader ( GLenum type,
             const std::string &path );
    ~Shader ();

    GLuint get_id () { return id; }

    bool compile ();
    
  private:
    GLenum type;
    std::string path;

    bool loaded{false};
    bool compiled{false};
    
    GLuint id{0};
  };
}

#endif
